function noop(){}
//路由中间件
export default({app,route,redirect,params,query})=>{
  //route 路由
  //redirect 强制跳转
  let routeObj = {
    '/kaoshidagang':function(){
      redirect('/news?1')
    }
  }
  routeObj[route.path]?routeObj[route.path]():noop()
  
  // app.router.beforeEach((to,from,next)=>{
  //   console.log(to)
  //   console.log(to.path)
  //   if(to.path=='/kaoshidagang'){
  //     console.log('11')
  //     redirect('/news')
  //   }else{
  //     next()
  //   }

  // })
}
